Skip to main content

FlowTrigger Methods

An object defining methods for the FlowTrigger class.

Initialize()

Initializes the flow trigger. This method is an implementation of the abstract Initialize method from the base class.

Returns:

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetParentProcessId(parentProcessId)

Sets the parent process ID for this flow trigger.

Parameters:

parentProcessId (required): string
The ID of the parent process.

Returns:

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


Execute(workflowUserContext, processResponse)

Executes the flow trigger by resolving source data and starting the associated flow.

Parameters:

workflowUserContext (required): #linkDocument(csharp-Bimser.Synergy.Entities.Shared.Business.Objects.Context)
The workflow context for the user executing the trigger.

processResponse (required): Action<FlowStartResponse>
The action to take after the flow start response is received.

Returns:

Type: Task
Task without value

This is a async method. Method should be waited. Be careful if call this method without waiting.

See Also


GetParentProcessId()

Returns the parent process ID if available, otherwise returns 0.

Returns:

Type: long
Returns the parent process ID.

This is a sync method. Method runs synchronously.